package com.example.video.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.io.Serializable;

@Data
@Embeddable
@NoArgsConstructor
@AllArgsConstructor
public class DeviceInformationPK implements Serializable {

    //设备
    @ManyToOne()
    @JoinColumn(name = "device_id")
    private Device device;

    //消息
    @ManyToOne()
    @JoinColumn(name = "information_id")
    private Information information;


}
